﻿@model List<CMP.ERP.Model.Stock>
@{
    Layout = null;
}
@Html.Action("Account_Show", "Account");
    <div class="content">
        <div class="right" id="mainFrame">
            <div class="right_cont">
                <div id="middle">
        <div class="Switch"></div>
        <script type="text/javascript">
            $(document).ready(function (e) {
                $(".Switch").click(function () {
                    $(".left").toggle();

                });
            });
        </script>

        <div class="right" id="mainFrame">

            <div class="right_cont">
                <ul class="breadcrumb">
                    当前位置：
                    <a href="/Home/Index">首页</a>
                    <span class="divider">/</span>
                    库存盘点
                </ul>
                <div class="title_right"><strong>库存盘点</strong></div>
                <div style="width:100%; margin:auto">
                    <div style="margin-top:20px;">
                        <table class="table  table-hover table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>库存编号</th>
                                    <th>购买的商品</th>
                                    <th>仓库编号</th>
                                    <th>库存数量</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var i in Model)
                                {
                                    <tr>
                                        <td>@i.Stock_Id</td>
                                        <td>@i.Commodity_Name</td>
                                        <td>@i.WareHose_Name</td>
                                        <td>@i.Stock_Num</td>
                                        <td>
                                            <a href="/Pandian/PandianShow/@i.Stock_Id" style="color:black"><span class="icon-edit"></span>盘点</a>
                                            </td>
                                        </tr>
                                }
                            </tbody>
                        </table>
                        <div style="margin-left:800px">
                            <a href="/Pandian/Stock_ShowPage/1">首页</a>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            @{
                                if (Convert.ToInt32(ViewBag.PageIndex) > 1)
                                {
                                    <a href="/Pandian/Stock_ShowPage/@(Convert.ToInt32(ViewBag.PageIndex-1))">上一页</a>
                                }
                                else
                                {
                                    <span>上一页</span>
                                }
                            }
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            @{
                                if (Convert.ToInt32(ViewBag.PageIndex) < Convert.ToInt32(ViewBag.count))
                                {
                                    <a href="/Pandian/Stock_ShowPage/@(Convert.ToInt32(ViewBag.PageIndex+1))">下一页</a>
                                }
                                else
                                {
                                    <span>下一页</span>
                                }
                            }
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="/Pandian/Stock_ShowPage/@ViewBag.count">尾页</a>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

            </div>
        </div>
    </div>
 
